﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;
using BUS;
namespace QuanLySach
{
    public partial class frmQLCongNo : Form
    {
        public frmQLCongNo()
        {
            InitializeComponent();
        }

        private void frmQLCongNo_Load(object sender, EventArgs e)
        {

        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnDanhSach_Click(object sender, EventArgs e)
        {
            try
            {
                KhachHangBUS khachhangBUS = new KhachHangBUS();
                List<KhachHangDTO> ListKH = khachhangBUS.LayDanhSachKhachHangBUS();
                dgvQLCongNo.DataSource = ListKH;
                //SachBUS sachBUS = new SachBUS();
                //List<SachDTO> ListSach = sachBUS.LayDachSachSach();
                //dgvQLSach.DataSource = ListSach;
            }
            catch (Exception ex)
            {
                MessageBox.Show("Loi" + ex, "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Question);
            }
        }

    }
}
